package String;

public class Ref {

	public static void main(String[] args) {
		// 定位字符串
		String str = "hello world";
		char mychar = str.charAt(6);
		System.out.println("字符串str中索引为6的字符是: "+mychar);

	}

}
